import { lazy } from "react"


const Layout=lazy(()=>import('@/pages/layout/index'))
const Home=lazy(()=>import('@/pages/menu/Home'))
const List=lazy(()=>import('@/pages/menu/List'))
const Choose=lazy(()=>import('@/pages/menu/Choose'))
const Sell=lazy(()=>import('@/pages/menu/Sell'))
const Business=lazy(()=>import('@/pages/menu/Business'))
const Order=lazy(()=>import('@/pages/menu/Order'))
const Manage=lazy(()=>import('@/pages/menu/Manage'))
const Return=lazy(()=>import('@/pages/menu/Return'))
const Reimburse=lazy(()=>import('@/pages/menu/Reimburse'))
const Tickets=lazy(()=>import('@/pages/menu/Tickets'))
const Sys=lazy(()=>import('@/pages/menu/Sys'))
const In=lazy(()=>import('@/pages/menu/In'))
const Grade=lazy(()=>import('@/pages/menu/Grade'))
const Marketing=lazy(()=>import('@/pages/menu/Marketing'))

const UserList=lazy(()=>import('@/pages/user/List'))
const UserHigh=lazy(()=>import('@/pages/user/HighSeas'))
const UserRubbish=lazy(()=>import('@/pages/user/Rubbish'))
const UserChoose=lazy(()=>import('@/pages/user/Choose'))
const UserSell=lazy(()=>import('@/pages/user/Sell'))
const UserPublic=lazy(()=>import('@/pages/user/Public'))
const UserPeople=lazy(()=>import('@/pages/user/People'))
const UserFollow=lazy(()=>import('@/pages/user/Follow'))
export const router=[
    {
        path:'/',
        element:<Layout></Layout>,
      
            children:[
                {
                    index:true,
                    //  path:'/menu/home',
                    
                    element:<Home></Home>
                },

                {
                    path:'/menu/list',
                    element:<List></List>
                },
                {
                    path:'/menu/choose',
                    element:<Choose></Choose>
                },
                {
                    path:'/menu/sell',
                    element:<Sell></Sell>
                },
                {
                    path:'/menu/business',
                    element:<Business></Business>
                },
                {
                    path:'/menu/order',
                    element:<Order></Order>
                },
                {
                    path:'/menu/manage',
                    element:<Manage></Manage>
                },
                {
                    path:'/menu/return',
                    element:<Return></Return>
                },
                {
                    path:'/menu/reimburse',
                    element:<Reimburse></Reimburse>
                },
                {
                    path:'/menu/tickets',
                    element:<Tickets></Tickets>
                },
                {
                    path:'/menu/sys',
                    element:<Sys></Sys>
                },
                {
                    path:'/menu/in',
                    element:<In></In>
                },

                {
                    path:'/menu/grade',
                    element:<Grade></Grade>
                },
                
                {
                    path:'/menu/marketing',
                    element:<Marketing></Marketing>
                },
                {
                    path:'/user/list',
                    element:<UserList></UserList>
                },
                {
                    path:'/user/highseas',
                    element:<UserHigh></UserHigh>
                },
                {
                    path:'/user/rubbish',
                    element:<UserRubbish></UserRubbish>
                },
                {
                    path:'/user/choose',
                    element:<UserChoose></UserChoose>
                },
                {
                    path:'/user/sell',
                    element:<UserSell></UserSell>
                },
                {
                    path:'/user/public',
                    element:<UserPublic></UserPublic>
                },
                {
                    path:'/user/people',
                    element:<UserPeople></UserPeople>
                },
                {
                    path:'/user/follow',
                    element:<UserFollow></UserFollow>
                }
            ]
        }
    ]
          
        
